﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="cn_member_center_online_pay" Codebehind="online_pay.aspx.cs" %>

<%@ Register Src="../UserControl/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../UserControl/top_ad.ascx" TagName="top_ad" TagPrefix="uc2" %>
<%@ Register Src="../UserControl/member_menu.ascx" TagName="member_menu" TagPrefix="uc3" %>
<%@ Register Src="../UserControl/footer.ascx" TagName="footer" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>在线充值，<%=(new Gift.WebApp.BasicSet()).TitleBind() %></title>
    <meta name="Keywords" content="<%=(new Gift.WebApp.BasicSet()).KeywordBind() %>" />
    <meta name="Description" content="<%=(new Gift.WebApp.BasicSet()).DescriptionBind() %>" />
    <link href="/script/css/public.css" type="text/css" rel="stylesheet" />
    <link href="/script/css/member.css" type="text/css" rel="stylesheet" />
    <link href="/script/css/ie.css" type="text/css" rel="stylesheet" />

    <script language="Javascript" type="text/javascript" src="/script/js/jquery-1.6.2.min.js"></script>

    <!--登陆注册 弹出窗口-->
    <style type="text/css" media="all">
        @import "/script/js/login/thickbox.css";
    </style>

    <script src="/script/js/login/thickbox.js" type="text/javascript"></script>

    <!-- 头部全部分类 三级导航-->

    <script type="text/javascript" src="/script/js/allmenu.js"></script>

    <script type="text/javascript">
        $(function () {
            $("#btnPay").click(function () {
                if ($("#txtAlimoney").val() == "") {
                    $("#txtAlimoney").select();
                    $("#spAlimoney").html("<img src=\"/script/images/wrong.gif\" />请输入充值金额！");
                    return false;
                } else {
                    if ($("#txtAlimoney").val().match(/^\d*\.?\d{0,2}$/) == null) {
                        $("#txtAlimoney").select();
                        $("#spAlimoney").html("<img src=\"/script/images/wrong.gif\" />充值金额不符！");
                        return false;
                    } else $("#spAlimoney").html("<img src=\"/script/images/right.gif\"/>");
                }
                if ($("input[name='pay_bank']:checked").val() == null) {
                    $("#spPay_bank").html("<img src=\"/script/images/wrong.gif\" />请选择支付方式！");
                    return false;
                } else $("#spPay_bank").html("<img src=\"/script/images/right.gif\"/>");
                if ($("input[name='pay_bank']:checked").val() != "Paypal") {
                    return true;
                } else {
                    window.open("/Paypal/reviewByPaypal.aspx?alimoney=" + $("#txtAlimoney").val());
                    return false;
                }

            });
        });
    </script>

</head>
<body>
    <uc1:header ID="Header1" runat="server" />
    <uc2:top_ad ID="Top_ad1" runat="server" />
    <div class="container">
        <uc3:member_menu ID="Member_menu1" runat="server" />
        <!--end leftnav-->
        <div class="rightcontent">
            <h5>
                <strong>预存款充值</strong></h5>
            <div class="content no_border">
                <form id="formOnlinePay" action="/alipay/alipayto.aspx" defaultbutton="btnPay" method="post">
                    <p>
                        <label for="txtAlimoney">
                            充值金额：</label>
                        <input id="txtAlimoney" type="text" maxlength="10" name="alimoney" /><span id="spAlimoney">*充值金额最多保留两位小数！</span></p>
                    <%Response.Write(PaymentBind()); %>
                    <p>
                        <input name="aliorder" type="hidden" value="在线充值" />
                        <input name="alibody" type="hidden" value="在线充值" />
                        <input type="text" style="display: none;" />
                    </p>
                    <input id="btnPay" type="submit" class="saile_submit" value="立即充值" />
                </form>
            </div>
        </div>
        <!--end rightcontent-->
        <span class="clear"></span>
    </div>
    <uc4:footer ID="Footer1" runat="server" />
</body>
</html>

